package kr.hkit.myframework;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class InputUI extends JPanel {

	/**
	 * date: 2015.04.08
	 * author : jenny
	 */
	private static final long serialVersionUID = 1L;
	private JLabel lbl;
	private JTextField tf;
	
	public InputUI(String text) {
		setLayout(new GridLayout(0,2));
		
		lbl= new JLabel(text);
		tf = new JTextField(10);
		
		add(lbl);
		add(tf);
		//tf.requestFocus();
	}

	public JTextField getTf() {
		return tf;
	}	
}
